#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main() {
	int n = 0;
	int max = 0;
	int count = 10;
	do {
		scanf("%d", &n);
		if (n > max)
			max = n;
		count--;
	} while (count);
	printf("%d\n", max);
	return 0;
}